package com.example.taobaounion.utils;

import android.util.Log;

public class LogUtils {

    private static int currentLev = 4;
    private static final int debugLev = 4;
    private static final int infoLev = 3;
    private static final int warningLev = 2;
    private static final int errorLev = 1;


    public static void d(String TAG, String log) {
        if (currentLev >= debugLev) {
            Log.d(TAG, log);
        }
    }

    public static void i(String TAG, String log) {
        if (currentLev >= infoLev) {
            Log.i(TAG, log);
        }

    }

    public static void w(String TAG, String log) {
        if (currentLev >= warningLev) {
            Log.w(TAG, log);
        }

    }

    public static void e(String TAG, String log) {
        if (currentLev >= errorLev) {
            Log.e(TAG, log);
        }

    }
}
